<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: DimensionSet Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00086.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">DimensionSet Class Reference<div class="ingroups"><a class="el" href="a00519.html">mapping - classes representing mathematical mappings</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DimensionSet" -->
<p>Represents a set of dimensions which is used to define over which dimensions a mapping is defined (the domain of the mapping).  
 <a href="a00086.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00298_source.html">MappingBase.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for DimensionSet:</div>
<div class="dyncontent">
<div class="center"><img src="a00734.png" border="0" usemap="#DimensionSet_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00735.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae2bcab70efad90cb4c5641025c6878e0"></a><!-- doxytag: member="DimensionSet::value_type" ref="ae2bcab70efad90cb4c5641025c6878e0" args="" -->
typedef _Base::value_type&#160;</td><td class="memItemRight" valign="bottom"><b>value_type</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a336dbb4070afc6bcf67d0edc4b17d53a"></a><!-- doxytag: member="DimensionSet::iterator" ref="a336dbb4070afc6bcf67d0edc4b17d53a" args="" -->
typedef _Base::iterator&#160;</td><td class="memItemRight" valign="bottom"><b>iterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adec6c887a5e08f247e0d2bc17897e94f"></a><!-- doxytag: member="DimensionSet::reverse_iterator" ref="adec6c887a5e08f247e0d2bc17897e94f" args="" -->
typedef _Base::reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>reverse_iterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a693d9aef927a8d1f16bd2b1604431f59"></a><!-- doxytag: member="DimensionSet::const_reverse_iterator" ref="a693d9aef927a8d1f16bd2b1604431f59" args="" -->
typedef _Base::reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>const_reverse_iterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aac4df0c72a63059712a47fcb34786c6f"></a><!-- doxytag: member="DimensionSet::const_iterator" ref="aac4df0c72a63059712a47fcb34786c6f" args="" -->
typedef _Base::const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>const_iterator</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43ee55508c9110c830b9e44b0f9f14df"></a><!-- doxytag: member="DimensionSet::size_type" ref="a43ee55508c9110c830b9e44b0f9f14df" args="" -->
typedef _Base::size_type&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a543e261b1f565957d57bcd015960f0c8"></a><!-- doxytag: member="DimensionSet::const_reference" ref="a543e261b1f565957d57bcd015960f0c8" args="" -->
typedef _Base::const_reference&#160;</td><td class="memItemRight" valign="bottom"><b>const_reference</b></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a09645917a6984ef63aea0f3428fb97e6"></a><!-- doxytag: member="DimensionSet::DimensionSet" ref="a09645917a6984ef63aea0f3428fb97e6" args="()" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a09645917a6984ef63aea0f3428fb97e6">DimensionSet</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor creates an empty <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9b2336c05b14145a0519bbe3fdc33f05"></a><!-- doxytag: member="DimensionSet::DimensionSet" ref="a9b2336c05b14145a0519bbe3fdc33f05" args="(const DimensionSet &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a9b2336c05b14145a0519bbe3fdc33f05">DimensionSet</a> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;o)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy constructor. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00086.html">DimensionSet</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a800e56f0c05af864c372df7e70daea8f">operator=</a> (<a class="el" href="a00086.html">DimensionSet</a> const &amp;copy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">DimensionSet assignment operator.  <a href="#a800e56f0c05af864c372df7e70daea8f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#ac1230bce09abeef30d87519bf03b3167">swap</a> (<a class="el" href="a00086.html">DimensionSet</a> &amp;s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps data with another DimensionSet.  <a href="#ac1230bce09abeef30d87519bf03b3167"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a743d9c2b59961b111abb268aa4258b06"></a><!-- doxytag: member="DimensionSet::DimensionSet" ref="a743d9c2b59961b111abb268aa4258b06" args="(const DimensionSet::value_type &amp;d)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a743d9c2b59961b111abb268aa4258b06">DimensionSet</a> (const DimensionSet::value_type &amp;d)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> with the passed <a class="el" href="a00085.html" title="Specifies a dimension for mappings (like time, frequency, etc.)">Dimension</a> as initial <a class="el" href="a00085.html" title="Specifies a dimension for mappings (like time, frequency, etc.)">Dimension</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a857486e570401c8a748f90a9a63f8f"></a><!-- doxytag: member="DimensionSet::DimensionSet" ref="a3a857486e570401c8a748f90a9a63f8f" args="(const DimensionSet::value_type &amp;d1, const DimensionSet::value_type &amp;d2)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a3a857486e570401c8a748f90a9a63f8f">DimensionSet</a> (const DimensionSet::value_type &amp;d1, const DimensionSet::value_type &amp;d2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> with the passed Dimensions as initial Dimensions (convenience method) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8891447188b7e386f82e536546756157"></a><!-- doxytag: member="DimensionSet::DimensionSet" ref="a8891447188b7e386f82e536546756157" args="(const DimensionSet::value_type &amp;d1, const DimensionSet::value_type &amp;d2, const DimensionSet::value_type &amp;d3)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a8891447188b7e386f82e536546756157">DimensionSet</a> (const DimensionSet::value_type &amp;d1, const DimensionSet::value_type &amp;d2, const DimensionSet::value_type &amp;d3)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> with the passed Dimensions as initial Dimensions (convenience method) <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#aae6d8ce3a87e3e1571b97c92f11363fb">isSubSet</a> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>.  <a href="#aae6d8ce3a87e3e1571b97c92f11363fb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#af3c9b9a85688a4f1ef8caa3b21bf7423">isRealSubSet</a> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;other) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a real subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>.  <a href="#af3c9b9a85688a4f1ef8caa3b21bf7423"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a397190b81dbfde450e4fe1e47633fb39"></a><!-- doxytag: member="DimensionSet::addDimension" ref="a397190b81dbfde450e4fe1e47633fb39" args="(const DimensionSet::value_type &amp;d)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a397190b81dbfde450e4fe1e47633fb39">addDimension</a> (const DimensionSet::value_type &amp;d)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the passed dimension to the <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a015cb6fa6c77b26b8c7b1e65827b8342"></a><!-- doxytag: member="DimensionSet::hasDimension" ref="a015cb6fa6c77b26b8c7b1e65827b8342" args="(const DimensionSet::value_type &amp;d) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a015cb6fa6c77b26b8c7b1e65827b8342">hasDimension</a> (const DimensionSet::value_type &amp;d) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the passed <a class="el" href="a00085.html" title="Specifies a dimension for mappings (like time, frequency, etc.)">Dimension</a> is inside this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af391aba2c6f2238073c0b215d6c7311c"></a><!-- doxytag: member="DimensionSet::operator==" ref="af391aba2c6f2238073c0b215d6c7311c" args="(const DimensionSet &amp;o) const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#af391aba2c6f2238073c0b215d6c7311c">operator==</a> (const <a class="el" href="a00086.html">DimensionSet</a> &amp;o) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the dimensions of both sets are equal. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af0bf2443edb92082740528ee9aff9cd0"></a><!-- doxytag: member="DimensionSet::begin" ref="af0bf2443edb92082740528ee9aff9cd0" args="()" -->
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a23fb2454ce8d875fc54b163db229537a"></a><!-- doxytag: member="DimensionSet::end" ref="a23fb2454ce8d875fc54b163db229537a" args="()" -->
iterator&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a76d7d38cfeec4f800c99631412a682c4"></a><!-- doxytag: member="DimensionSet::begin" ref="a76d7d38cfeec4f800c99631412a682c4" args="() const " -->
const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>begin</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3d60b9e3d50b92a4efe0058588e02833"></a><!-- doxytag: member="DimensionSet::end" ref="a3d60b9e3d50b92a4efe0058588e02833" args="() const " -->
const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>end</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af5d91e5851ec6d304bb4c01ac069a177"></a><!-- doxytag: member="DimensionSet::rbegin" ref="af5d91e5851ec6d304bb4c01ac069a177" args="()" -->
reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>rbegin</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad1d643560b5cc2a0bb734da0d01a9524"></a><!-- doxytag: member="DimensionSet::rend" ref="ad1d643560b5cc2a0bb734da0d01a9524" args="()" -->
reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>rend</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae31b8f4e30c30967240b3f7536280f12"></a><!-- doxytag: member="DimensionSet::rbegin" ref="ae31b8f4e30c30967240b3f7536280f12" args="() const " -->
const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>rbegin</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a139a9f01830f2fad782633d5aba12931"></a><!-- doxytag: member="DimensionSet::rend" ref="a139a9f01830f2fad782633d5aba12931" args="() const " -->
const_reverse_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>rend</b> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a7416c75853c1e3b5d4ad849adc812d"></a><!-- doxytag: member="DimensionSet::find" ref="a1a7416c75853c1e3b5d4ad849adc812d" args="(const value_type &amp;__x) const " -->
const_iterator&#160;</td><td class="memItemRight" valign="bottom"><b>find</b> (const value_type &amp;__x) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0bf532a8e4cbf151337d24b7246790a9"></a><!-- doxytag: member="DimensionSet::size" ref="a0bf532a8e4cbf151337d24b7246790a9" args="() const " -->
size_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a0bf532a8e4cbf151337d24b7246790a9">size</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the size of the DimensionSet. <br/></td></tr>
<tr><td class="memTemplParams" colspan="2">template&lt;typename _InputIterator &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00086.html#a692159c06427648fbd09f0cd879b3ec7">insert</a> (_InputIterator __first, _InputIterator __last)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">A template function that attempts to insert a range of elements.  <a href="#a692159c06427648fbd09f0cd879b3ec7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">iterator&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#ab4302bf6cfb3dc417c7a3323efc908e0">insert</a> (const_iterator __position, const value_type &amp;__x)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Attempts to insert an element into the DimensionSet.  <a href="#ab4302bf6cfb3dc417c7a3323efc908e0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a41c765e5e5c1ff02d36855bdd0d3601c"></a><!-- doxytag: member="DimensionSet::empty" ref="a41c765e5e5c1ff02d36855bdd0d3601c" args="() const " -->
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#a41c765e5e5c1ff02d36855bdd0d3601c">empty</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if the DimensionSet is empty. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abf3b99a319deca6efc123ec52d77d867"></a><!-- doxytag: member="DimensionSet::timeDomain" ref="abf3b99a319deca6efc123ec52d77d867" args="" -->
static const <a class="el" href="a00086.html">DimensionSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#abf3b99a319deca6efc123ec52d77d867">timeDomain</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Shortcut to a <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> which only contains time. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac3f34a560d6c4ad5dc8d72dc69359b77"></a><!-- doxytag: member="DimensionSet::timeFreqDomain" ref="ac3f34a560d6c4ad5dc8d72dc69359b77" args="" -->
static const <a class="el" href="a00086.html">DimensionSet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00086.html#ac3f34a560d6c4ad5dc8d72dc69359b77">timeFreqDomain</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Shortcut to a <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> which contains time and frequency. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9c28a6397d409fcc074e0b0ed0bb2ef9"></a><!-- doxytag: member="DimensionSet::_Base" ref="a9c28a6397d409fcc074e0b0ed0bb2ef9" args="" -->
typedef std::set&lt; <a class="el" href="a00085.html">Dimension</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>_Base</b></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a633c146864075e9e18a377704f82a0e8"></a><!-- doxytag: member="DimensionSet::Storage" ref="a633c146864075e9e18a377704f82a0e8" args="" -->
_Base&#160;</td><td class="memItemRight" valign="bottom"><b>Storage</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Represents a set of dimensions which is used to define over which dimensions a mapping is defined (the domain of the mapping). </p>
<p>This class actually public extends from std::set&lt;Dimension&gt;. So any method provided by std::set can be also used.</p>
<p>The dimensions are stored ordered by their ids.</p>
<p>Note: Unlike Arguments and Mappings, a <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> does not contain "time" as dimension per default. You'll have to add it like any other dimension.</p>
<dl class="author"><dt><b>Author:</b></dt><dd>Karl Wessel </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a692159c06427648fbd09f0cd879b3ec7"></a><!-- doxytag: member="DimensionSet::insert" ref="a692159c06427648fbd09f0cd879b3ec7" args="(_InputIterator __first, _InputIterator __last)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename _InputIterator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void DimensionSet::insert </td>
          <td>(</td>
          <td class="paramtype">_InputIterator&#160;</td>
          <td class="paramname"><em>__first</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">_InputIterator&#160;</td>
          <td class="paramname"><em>__last</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>A template function that attempts to insert a range of elements. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">first</td><td>Iterator pointing to the start of the range to be inserted. </td></tr>
    <tr><td class="paramname">last</td><td>Iterator pointing to the end of the range.</td></tr>
  </table>
  </dd>
</dl>
<p>Complexity similar to that of the range constructor. </p>

<p>Referenced by <a class="el" href="a00013.html#a8b3fcda23d2eec4e931126d261e4b194">Argument::getDimensions()</a>.</p>
<div class="fragment"><pre class="fragment">  { Storage.insert(__first, __last); }
</pre></div>
</div>
</div>
<a class="anchor" id="ab4302bf6cfb3dc417c7a3323efc908e0"></a><!-- doxytag: member="DimensionSet::insert" ref="ab4302bf6cfb3dc417c7a3323efc908e0" args="(const_iterator __position, const value_type &amp;__x)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">iterator DimensionSet::insert </td>
          <td>(</td>
          <td class="paramtype">const_iterator&#160;</td>
          <td class="paramname"><em>__position</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const value_type &amp;&#160;</td>
          <td class="paramname"><em>__x</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Attempts to insert an element into the DimensionSet. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>An iterator that serves as a hint as to where the element should be inserted. </td></tr>
    <tr><td class="paramname">x</td><td>Element to be inserted. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>An iterator that points to the element with key of <em>x</em> (may or may not be the element passed in).</dd></dl>
<p>This function is not concerned about whether the insertion took place, and thus does not return a boolean like the single-argument <a class="el" href="a00086.html#a692159c06427648fbd09f0cd879b3ec7" title="A template function that attempts to insert a range of elements.">insert()</a> does. Note that the first parameter is only a hint and can potentially improve the performance of the insertion process. A bad hint would cause no gains in efficiency.</p>
<p>For more on <em>hinting</em>, see: <a href="http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt07ch17.html">http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt07ch17.html</a></p>
<p>Insertion requires logarithmic time (if the hint is not taken). </p>
<div class="fragment"><pre class="fragment">                                                           {
    <span class="keywordflow">return</span> Storage.insert(__position, __x);
  }
</pre></div>
</div>
</div>
<a class="anchor" id="af3c9b9a85688a4f1ef8caa3b21bf7423"></a><!-- doxytag: member="DimensionSet::isRealSubSet" ref="af3c9b9a85688a4f1ef8caa3b21bf7423" args="(const DimensionSet &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DimensionSet::isRealSubSet </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00086.html">DimensionSet</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a real subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. </p>
<p>A <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a real subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> if every <a class="el" href="a00085.html" title="Specifies a dimension for mappings (like time, frequency, etc.)">Dimension</a> of the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is defined in this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> and there is at least one Dimensions in this set which isn't in the other set. </p>

<p>References <a class="el" href="a00086.html#a0bf532a8e4cbf151337d24b7246790a9">size()</a>.</p>
<div class="fragment"><pre class="fragment">                                                    {
    <span class="keywordflow">if</span>(<a class="code" href="a00086.html#a0bf532a8e4cbf151337d24b7246790a9" title="Returns the size of the DimensionSet.">size</a>() &lt;= other.<a class="code" href="a00086.html#a0bf532a8e4cbf151337d24b7246790a9" title="Returns the size of the DimensionSet.">size</a>())
      <span class="keywordflow">return</span> <span class="keyword">false</span>;

    <span class="keywordflow">return</span> std::includes(begin(), end(), other.begin(), other.end());
  }
</pre></div>
</div>
</div>
<a class="anchor" id="aae6d8ce3a87e3e1571b97c92f11363fb"></a><!-- doxytag: member="DimensionSet::isSubSet" ref="aae6d8ce3a87e3e1571b97c92f11363fb" args="(const DimensionSet &amp;other) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DimensionSet::isSubSet </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00086.html">DimensionSet</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns true if the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. </p>
<p>A <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is a subset of this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> if every <a class="el" href="a00085.html" title="Specifies a dimension for mappings (like time, frequency, etc.)">Dimension</a> of the passed <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> is defined in this <a class="el" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a>. </p>

<p>Referenced by <a class="el" href="a00138.html#ac9d1a808dbca5da873af58f1da4cbcf4">MappingUtils::findMax()</a>, <a class="el" href="a00138.html#adb9e9ced268b9a5d1d4f6d34738654aa">MappingUtils::findMin()</a>, and <a class="el" href="a00195.html#aef703d1c7304041f2594886e902134ed">SimpleConstMappingIterator::SimpleConstMappingIterator()</a>.</p>
<div class="fragment"><pre class="fragment">                                                {
    <span class="keywordflow">if</span>(Storage.size() &lt; other.Storage.size())
      <span class="keywordflow">return</span> <span class="keyword">false</span>;

    <span class="keywordflow">return</span> std::includes(Storage.begin(), Storage.end(), other.Storage.begin(), other.Storage.end());
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a800e56f0c05af864c372df7e70daea8f"></a><!-- doxytag: member="DimensionSet::operator=" ref="a800e56f0c05af864c372df7e70daea8f" args="(DimensionSet const &amp;copy)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00086.html">DimensionSet</a>&amp; DimensionSet::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00086.html">DimensionSet</a> const &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>DimensionSet assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">copy</td><td>A DimensionSet of identical element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>All the elements of <em>copy</em> are copied. </p>
<div class="fragment"><pre class="fragment">  {
    <a class="code" href="a00086.html" title="Represents a set of dimensions which is used to define over which dimensions a mapping is defined (th...">DimensionSet</a> tmp(copy); <span class="comment">// All resource all allocation happens here.</span>
                              <span class="comment">// If this fails the copy will throw an exception</span>
                              <span class="comment">// and &#39;this&#39; object is unaffected by the exception.</span>
    <a class="code" href="a00086.html#ac1230bce09abeef30d87519bf03b3167" title="Swaps data with another DimensionSet.">swap</a>(tmp);
    <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  }
</pre></div>
</div>
</div>
<a class="anchor" id="ac1230bce09abeef30d87519bf03b3167"></a><!-- doxytag: member="DimensionSet::swap" ref="ac1230bce09abeef30d87519bf03b3167" args="(DimensionSet &amp;s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DimensionSet::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00086.html">DimensionSet</a> &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Swaps data with another DimensionSet. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>A DimensionSet of the same element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>This exchanges the elements between two DimensionSet's in constant time. Note that the global std::swap() function is specialized such that std::swap(s1,s2) will feed to this function. </p>

<p>Referenced by <a class="el" href="a00058.html#a473df8fa0aa441ca1adb356b17b1f59f">ConstMapping::swap()</a>.</p>
<div class="fragment"><pre class="fragment">  {
    <span class="comment">// X::swap(s); // swap the base class members</span>
    <span class="comment">/* Swap all D members */</span>
    <a class="code" href="a00086.html#ac1230bce09abeef30d87519bf03b3167" title="Swaps data with another DimensionSet.">std::swap</a>(Storage, s.Storage);
  }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/<a class="el" href="a00298_source.html">MappingBase.h</a></li>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/MappingBase.cc</li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00086.html">DimensionSet</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:32 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
